.profileContainer {
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
  width: 100%; // 确保容器占满可用空间

  .titleBar {
    display: flex;
    align-items: center;
    margin-bottom: 24px;

    .backButton {
      margin-right: 16px;
      font-size: 16px;

      &:hover {
        color: #4b6cb7;
      }
    }

    .title {
      font-size: 20px;
      font-weight: 600;
      margin: 0;
      color: #333;
    }
  }

  .infoCard {
    margin-bottom: 24px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);

    .infoItem {
      display: flex;
      align-items: center;
      margin-bottom: 20px;
      flex-wrap: wrap; // 允许在小屏幕上换行

      &:last-child {
        margin-bottom: 0;
      }

      .infoLabel {
        min-width: 180px;
        color: #666;
        font-weight: 500;
      }

      .infoValue {
        flex: 1;
        color: #333;
        font-weight: 500;
        min-width: 100px; // 确保有最小宽度
      }

      .actionButton {
        margin-left: 16px;
      }

      .redeemInput {
        width: 240px;
        margin-right: 16px;
        @media (max-width: 576px) {
          width: 100%;
          margin: 8px 0;
        }
      }

      .redeemButton {
        background: linear-gradient(90deg, #4b6cb7 0%, #8a55c9 100%);
        border: none;

        &:hover {
          opacity: 0.9;
          background: linear-gradient(90deg, #4b6cb7 0%, #8a55c9 100%);
        }
      }
    }
  }

  .recordsSection {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    width: 100%; // 确保容器占满可用空间
    overflow-x: hidden; // 防止内容溢出

    .sectionTitle {
      font-size: 16px;
      font-weight: 500;
      margin-bottom: 16px;
      color: #333;
    }

    .recordsTable {
      margin-bottom: 16px;
      width: 100%;
    }

    .paginationContainer {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding-top: 16px;
      border-top: 1px solid #f0f0f0;
      flex-wrap: wrap; // 允许在小屏幕上换行

      .paginationInfo {
        color: #666;
        margin-bottom: 8px;
      }
    }
  }
}

// 弹窗样式优化
:global(.ant-modal-content) {
  border-radius: 8px;

  .ant-modal-header {
    border-radius: 8px 8px 0 0;
  }

  .ant-modal-title {
    font-weight: 500;
  }

  .ant-modal-footer {
    border-radius: 0 0 8px 8px;
  }
}
